package org.ouwa.lms.client.ui.event;

import org.ouwa.lms.client.support.event.ApplicationEvent;
import org.ouwa.lms.client.support.event.ApplicationEventSource;

/**
 * Triggered when the user logs out of the application.
 * 
 * @author lviet
 */
public class LogoutEvent extends ApplicationEvent {
	private final String username;
	
	public LogoutEvent(ApplicationEventSource source, String username) {
		super(source);
		this.username = username;
	}
	
	public String getUsername() {
		return username;
	}
	
	@Override
	public String getDescription() {
		return "'" + username + "' has logged out.";
	}
}
